package Sort.面试;

public class 阶乘 {
    public static void main(String[] args) {

        int n = 15;
        System.out.println(f(n));

    }

    public static int f(int n){
        if(n == 1){
            return 1;
        }
        return n * f(n-1);
    }


}
